import request from '@/utils/request'

// 查询每日一卦列表
export function listDivination(query) {
  return request({
    url: '/ted/divination/list',
    method: 'get',
    params: query
  })
}

// 查询每日一卦详细
export function getDivination(id) {
  return request({
    url: '/ted/divination/' + id,
    method: 'get'
  })
}

// 新增每日一卦
export function addDivination(data) {
  return request({
    url: '/ted/divination',
    method: 'post',
    data: data
  })
}

// 修改每日一卦
export function updateDivination(data) {
  return request({
    url: '/ted/divination',
    method: 'put',
    data: data
  })
}

// 删除每日一卦
export function delDivination(id) {
  return request({
    url: '/ted/divination/' + id,
    method: 'delete'
  })
}
